
export default [
  {//首页--二级菜单
    path: 'homepage',
    name: 'homepage',
    component: () => import('@/Main.vue'),
    meta: {
      title: 'homepage',
      icon: 'iconfont icon-shouye'
    },
    children: [
      {
        path: '',
        name: 'homepage',
        component: () => import('@/views/Homepage.vue'),
        meta: {
          title: 'homepage',
          icon: 'iconfont icon-shouye'
        }
      }
    ]
  },
  {//运营管理---二级菜单
    path: 'operationmanage',
    name: 'operationmanage',
    component: () => import('@/Main.vue'),
    meta: {
      title: 'operationmanage.operationmanage',
      icon: 'iconfont icon-yunying'
    },
    children: [
      {//订单管理
        path: 'indent',
        name: 'indent',
        component: () => import('@/views/operationmanage/Indent.vue'),
        meta: {
          title: 'operationmanage.indent'
        }
      },
      {//评论管理
        path: 'comment',
        name: 'comment',
        component: () => import('@/views/operationmanage/Comment.vue'),
        meta: {
          title: 'operationmanage.comment'
        }
      },
      {//运费管理
        path: 'freight',
        name: 'freight',
        component: () => import('@/views/operationmanage/Freight.vue'),
        meta: {
          title: 'operationmanage.freight'
        }
      },
    ]
  },
  {//商品管理
    path: 'goodsmange',
    name: 'goodsmange',
    component: () => import('@/Main.vue'),
    meta: {
      title: 'goodsmange.goodsmange',
      icon: 'iconfont icon-shangpin'
    },
    children: [
      {//商品列表
        path: 'goods',
        name: 'goods',
        component: () => import('@/views/goodsmange/Goods.vue'),
        meta: {
          title: 'goodsmange.goods'
        }
      },
      {
        name: 'creategoods', path: "creategoods", component: () => import('@/views/goodsmange/CreateGoods.vue'),
        meta: {
          title: '创建商品',
          hideden: true,//控制显示与隐藏,
          keepAlive: true//控制是否缓存组件
        }
      },
      {
        name: 'editgoods', path: "editgoods/:id", props: true, component: () => import('@/views/goodsmange/EditGoods.vue'),
        meta: {
          title: '编辑商品',
          hideden: true,
          keepAlive: true//控制是否缓存组件
        }
      },
      {//团购列表
        path: 'groupon',
        name: 'groupon',
        component: () => import('@/views/goodsmange/Groupon.vue'),
        meta: {
          title: 'goodsmange.groupon'
        }
      },
      {//商品类目
        path: 'type',
        name: 'type',
        component: () => import('@/views/goodsmange/Type.vue'),
        meta: {
          title: 'goodsmange.type'
        },
      }
    ]
  },
  {//推广管理
    path: 'promotionmanger',
    name: 'promotionmanger',
    component: () => import('@/Main.vue'),
    meta: {
      title: 'promotionmanger.promotionmanger',
      icon: 'iconfont icon-tuiguangma'
    },
    children: [
      {//广告管理
        path: 'advertise',
        name: 'advertise',
        component: () => import('@/views/promotionmanger/Advertise.vue'),
        meta: {
          title: 'promotionmanger.advertise'
        }
      },
      {//优惠劵管理
        path: 'coupon',
        name: 'coupon',
        component: () => import('@/views/promotionmanger/Coupon.vue'),
        meta: {
          title: 'promotionmanger.coupon'
        }
      }
    ]
  },
  {//用户管理
    path: 'usermanger',
    name: 'usermanger',
    component: () => import('@/Main.vue'),
    meta: {
      title: 'usermanger.usermanger',
      icon: 'iconfont icon-jurassic_user'
    },
    children: [
      {//会员管理
        path: 'vip',
        name: 'vip',
        component: () => import('@/views/usermanger/Vip.vue'),
        meta: {
          title: 'usermanger.vip'
        }
      },
      {//地址管理
        path: 'address',
        name: 'address',
        component: () => import('@/views/usermanger/Address.vue'),
        meta: {
          title: 'usermanger.address'
        }
      },
    ]
  },
  {//系统管理
    path: 'systemmanger',
    name: 'systemmanger',
    component: () => import('@/Main.vue'),
    meta: {
      title: 'systemmanger.systemmanger',
      icon: 'iconfont icon-xitongfuwu'
    },
    children: [
      {//管理员管理
        path: 'admin',
        name: 'admin',
        component: () => import('@/views/systemmanger/Admin.vue'),
        meta: {
          title: 'systemmanger.admin'
        },
      },
      {//系统配置
        path: 'systems',
        name: 'systems',
        component: () => import('@/views/systemmanger/Systems.vue'),
        meta: {
          title: 'systemmanger.systems'
        },
      },
      {//操作日志
        path: 'logs',
        name: 'logs',
        component: () => import('@/views/systemmanger/Logs.vue'),
        meta: {
          title: 'systemmanger.logs'
        },
      },
      {//角色管理
        path: 'role',
        name: 'role',
        component: () => import('@/views/systemmanger/Role.vue'),
        meta: {
          title: 'systemmanger.role'
        },
      }
    ]
  }
]

